<?php if(!empty($goodsList)){?>
<div class="topic">
	<ul class="topic_tab">
		<?php foreach($categoryList as $key => $value){?>
			<?php if($key == 0){?>
			<li class="cur"><a href="javascript:void(0);"><?php echo $value['name'];?></a><i></i></li>
			<?php }else{?>
			<li><a href="javascript:void(0);"><?php echo $value['name'];?></a><i></i></li>
			<?php }?>
		<?php }?>
	</ul>
	<h2>缤纷主题</h2>
	<?php foreach($goodsList as $keys=>$value){?>
	<dl class="topic_wrap clrfix" <?php if($keys == 1){?>style="display:block;"<?php }?>>
		<?php foreach($value as $key => $v){?>
			<?php if(in_array($key, array(0,3))){?>
			<dt>
				<div class="pic">
					<a href="<?php echo Yii::app()->createUrl('trip/detail',array("goodssn" => $v['goods_sn']));?>">
						<img src="<?php echo $v['image']; ?>" alt="<?php echo $v['goods_name']; ?>" />
						<p><span><i></i><?php echo rand(10,50);?>个相关产品</span></p>
					</a>
				</div>
				<h3><strong><i>￥</i><?php echo $v['price']; ?>/<b><?php echo $v['unit']; ?></b></strong><a href=""><?php echo $v['goods_name']; ?></a></h3>
				<p><?php echo $v['goods_sub']; ?></p>
			</dt>
			<?php }else{?>
			<dd>
				<div class="pic">
					<a href="<?php echo Yii::app()->createUrl('trip/detail',array("goodssn" => $v['goods_sn']));?>">
						<img src="<?php echo $v['image']; ?>" alt="<?php echo $v['goods_name']; ?>" />
						<p><span><i></i><?php echo rand(10,50);?>个相关产品</span></p>
					</a>
				</div>
				<h3><strong><i>￥</i><?php echo $v['price']; ?>/<b><?php echo $v['unit']; ?></b></strong><a href=""><?php echo $v['goods_name']; ?></a></h3>
				<p><?php echo $v['goods_sub']; ?></p>
			</dd>
			<?php }?>
		<?php }?>
	</dl>
	<?php }?>
</div>
<?php }?>